﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using ProgNetComponents.Design.TypeConverters;
using System.ComponentModel.Design.Serialization;
using System.Reflection;

namespace ProgNetComponentsDx.Language.Design.TypeConverters
{
    public class RadioItemLngSettingsConverter : CollectionItemTypeConverter<RadioItemLngSettings>
    {
        protected override ConstructorInfo GetConstructor(RadioItemLngSettings item)
        {
            return typeof(RadioItemLngSettings).GetConstructor(new Type[] { typeof(object), typeof(string) });
        }

        protected override object[] GetConstructorParamters(RadioItemLngSettings item)
        {
            return new object[] { item.ItemValue, item.StringCode };
        }
    }
}
